#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>


#include <stdio.h>
void test(int (*p)[5], int r, int c)
{
    int i = 0;

    int j = 0;
    for (i = 0; i < r; i++)
    {
        for (j = 0; j < c; j++)
        {
            printf("%p ", (*(p + i) + j));
        }
        printf("\n");
    }
}
int main()
{
    int arr[3][5] = { {1,2,3,4,5}, {2,3,4,5,6},{3,4,5,6,7} };
    //test(arr, 3, 5);
    char b = 'b';
    char* p = &b;
    printf("1 %c\n", b);
    printf("2 %s\n", p+0);
    char* a[] = { "abc","bcd","def" };
    printf("1 %s\n", *a);
    printf("2 %s\n", a[0]);
    return 0;
}




int i;
int main1()
{
    i--;
    if (i > sizeof(i))
    {
        printf(">\n");
        printf("%d\n", i);

    }
    else
    {
        printf("<\n");
    }
    return 0;
}


int t()
{
	
}


int maintest()
{

    int a, b;
    while (scanf("%d %d", &a, &b) != EOF)
    {
        int ju[4][4];
        int i, j = 0, c, d;
        for (i = 0; i < b; i++)
        {
            scanf("%d", &ju[i][j]);
            if (i == (b - 1) && j < (a - 1))
            {
                j++;
                i = -1;
            }
        }
        i = 0;
        for (j = 0; j < a; j++)
        {
            printf("%d", ju[i][j]);
            if (j == (a - 1) && i < (b - 1))
            {
                i++;
                j = -1;
                printf("\n");
            }
        }

    }
    return 0;
	/*int r = t();
	printf("%d", r);*/
	/*int arr[8] = { 1,2,3,4,5 };
	char arr2[8] = { 1,2,3,4,5 };
	char acY[5] = { 65,'65',5,5};
	char a = '\0';
	int b = 9;
	printf("%d\n", strlen(acY));
	printf("%d\n", strlen(arr2));
	printf("%zd\n", sizeof(char));
	printf("%d\n", a);*/


	return 0;
}